package org.teststack.token;

public class Token {

        private String tokenId;
        private long expirationTime; // Unix时间戳，单位毫秒






        public Token(String tokenId, long expirationTime) {
            this.tokenId = tokenId;
            this.expirationTime = expirationTime;
        }

        public boolean isExpired() {
            return System.currentTimeMillis() > expirationTime;
        }

        public String getTokenId() {
            return tokenId;
        }
    }

